|
|
|
|
|
|
|
6. Why would you use an access rights security scheme in your application? |
|
|
|
|
|
|
|
|
7. Why add audit trails to an application? |
|
|
|
|
|
|
|
|
Assume that you are a systems developer for a large corporation. Your company has had a problem keeping track of the fixed assets (desks, chairs, computers) in one of its divisions. Your manager has asked you to develop a system to help manage the tracking of these fixed assets. |
|
|
|
|
|
|
|
|
These assets are a large portion of the net worth of this organization. Therefore, management wants to keep track of any changes made to the items in this database. You decide that the best way to assist them in their efforts is to place an audit log in your application. |
|
|
|
|
|
|
|
|
Use the skills you developed in this chapter to modify project 20ABC01.VBP to construct a fixed asset tracking system. Follow these guidelines in the construction of this project: |
|
|
|
|
|
|
|
|
· Use Data Manager to create a new database for fixed assets. Name this database CH20EX.MDB, and add a table called Assets. Include the following fields in this table: |
|
|
|
|
|
|
|
|
· Build a form to enter and edit the data records for this table. Use a data control to manage the records. Use the default (Text1, Text2, and so on) for text field's Name property. Set the Name property of the form to frmFixedAssets. Make this the first form displayed after the login process. |
|
|
|
|
|
|
|
|
· Make your system write to an audit log any time a record is changed. Include Ch20ex.mdb.Assets as the name of the changed object, the user who made the change, and the AssetID of the changed record in the log. Use the same log as used by the login and logout routine. (Hint: Research the Data Changed event.) |
|
|
|
|
|